{% extends "base.html" %}
{% block body %}
    <body class="text-center">
    <div class="container">
        <form method="post" class="form-register">
            {{ form.hidden_tag() }}
            {{ form.csrf_token }}
            <h1 style="  margin-bottom: 60px;">设置参数</h1>


            <div style="text-align: center;">
                <!-- 设置每个 inline-flex div 的宽度为 60% -->
                <div class="custom-margin">
                    <label style="width: 100px;">豆包 api :</label>
                    {{ form.db_base_url(class="form-control",  style="width: 40%;" ,value=DB_Setting.db_base_url) }}



                </div>

                <div class="custom-margin">
                    <label style="width: 100px;">豆包 key :</label>
                    {{ form.db_api_key(class="form-control" , style="width: 40%;",value=DB_Setting.db_api_key) }}
                </div>

                <div class="custom-margin">

                    <label style="width: 100px;">服务区域 :</label>
                    {{ form.azure_region(class="form-control", style="width: 40%;",value=DB_Setting.azure_region) }}
                </div>

                <div class="custom-margin">
                    <label style="width: 100px;">微软 key :</label>
                    {{ form.azure_ttsapi_key(class="form-control", style="width: 40%;",value=DB_Setting.azure_ttsapi_key ) }}
                </div>

                <div class="custom-margin">
                    <label style="width: 100px;"> 初始提示词 :</label>
                        {{ form.init_prompt(class="form-control", style="width: 40%;" ) }}
                </div>





            </div>


            {{ form.submit(class="btn btn-lg btn-primary") }}
        </form>
    </div>
    </body>
{% endblock %}

